$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$f: 19.2;

.home {
  position: relative;
  width: 100%;

  .dialog {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .8);
    display: none;
    z-index: 1003;

    .close {
      position: absolute;
      right: 5%;
      top: 5%;
      cursor: pointer;
      z-index: 100;

      img {
        width: 50px;
      }
    }

    .content {
      width: 100%;

      video {
        width: 80%;
        height: 80vh;
        object-fit: cover;
        display: block;
        margin: 0 auto;
      }
    }
  }

  .cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 41/$f+vw;
    height: 41/$f+vw;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;

    &.on {
      opacity: 1;
    }
  }

  .section1 {
    width: 100%;
    height: 110vh;
    position: relative;

    .text {
      position: absolute;
      left: 8vw;
      top: 50%;
      transform: translateY(-50%);
      z-index: 10;

      .p1 {
        color: #6456A3;
        font-size: $fontSize_64;
        font-family: 'Montserrat-Regular.otf';
        font-weight: 700;
        text-transform: uppercase;

        // span {
        //   color: #61C0BD;
        //   display: block;
        // }
        p:nth-child(3),p:nth-child(4){
          color: #61C0BD;
        }
      }

      .p2 {
        color: rgba(98, 102, 135, .75);
        font-size: $fontSize_24;
        font-family: 'Lexend';
        margin: 2vw 0;
      }

      .buy {
        display: flex;
        align-items: center;
        border-radius: 32/$f+vw;
        background: #6456A3;
        color: #FFF;
        font-family: 'Lexend';
        font-size: 14/$f+vw;
        font-weight: 600;
        text-transform: capitalize;
        padding: 0.6vw 1vw;
        transition: all 600ms;
        width: fit-content;

        svg {
          display: block;
          width: 25/$f+vw;
          transform: translateY(-1px);
        }

        &:hover {
          background-color: #61C0BD;
        }
      }
    }

    .map {
      position: absolute;
      right: 0;
      top: 50%;
      width: 90%;
      transform: translateY(-50%);
      text-align: right;

      img {
        width: 80%;
      }

      .position1 {
        position: absolute;
        right: 16%;
        bottom: 43%;
        cursor: pointer;

        svg {
          display: block;
          width: 30/$f+vw;
        }
      }

      .position2 {
        position: absolute;
        right: 17%;
        bottom: 34%;
        cursor: pointer;

        svg {
          display: block;
          width: 30/$f+vw;
        }
      }
      .position3 {
        position: absolute;
        left: 34%;
        bottom: 53%;
        cursor: pointer;

        svg {
          display: block;
          width: 30/$f+vw;
        }
      }
    }

    .content {
      position: absolute;
      width: 45vw;
      top: 20%;
      right: 18vw;

      a {
        display: block;
        width: 100%;
        box-shadow: 0 0 10px rgba(0, 0, 0, .5);
        border-radius: 126/$f+vw;
        background-color: white;
        display: none;

        .pic {
          img {
            width: 100%;
            border-top-left-radius: 126/$f+vw;
            border-top-right-radius: 126/$f+vw;
            height: 450/$f+vw;
            object-fit: cover;
          }
        }

        .info {
          padding: 1vw 3vw 3vw 3vw;

          .p1 {
            color: #6456A3;
            font-size: $fontSize_32;
            font-family: 'Montserrat-Regular.otf';
            padding-bottom: 1vw;
            margin-bottom: 1vw;
            position: relative;

            &::after {
              content: '';
              display: block;
              position: absolute;
              left: 0;
              bottom: 0;
              background: #999BB0;
              width: 116/$f+vw;
              height: 1px;
            }
          }

          .des {
            color: #999BB0;
            font-size: $fontSize_22;
            font-style: italic;
            font-family: 'Montserrat-Light';
            line-height: 1.5;
          }
        }
      }

      .show {
        display: block;
      }
    }
  }

  .section2 {
    background: rgba(196, 195, 237, 0.15);
    padding: 5vw 15vw;

    .box1 {
      .slogo {
        text-align: center;

        img {
          vertical-align: middle;
          width: 548/$f+vw;
        }
      }

      .t {
        color: #BDC0CB;
        font-size: $fontSize_48;
        font-family: 'Montserrat-Regular.otf';
        text-transform: uppercase;
        margin-top: 1vw;
      }

      .t2 {
        color: #626687;
        font-size: $fontSize_24;
        font-family: 'Lexend';
        margin: 1vw 15%;
        text-align: center;
        p{
          font-family: 'Lexend';
        }
      }

      .more {
        border-radius: 32/$f+vw;
        margin: 1.5vw auto;
        width: fit-content;
        padding: 0.5vw 1vw;
        color: #6456A3;
        display: flex;
        justify-content: center;
        align-items: center;
        text-transform: capitalize;
        font-size: $fontSize_16;
        cursor: pointer;
        transition: all 600ms;

        p {
          font-family: 'Lexend';
        }

        svg {
          display: block;
          width: 25/$f+vw;

          path {
            transition: all 600ms;
          }
        }

        &:hover {
          background-color: #61C0BD;
          color: white;

          svg {
            path {
              fill: white;
            }
          }
        }
      }

      .video {
        width: 100%;

        video {
          border-radius: 100/$f+vw;
          display: block;
          object-fit: cover;
          width: 100%;
        }
      }
    }

    .box2 {
      display: flex;
      justify-content: space-between;
      margin: 12vw 0 6vw 0;

      .l {
        width: 48%;
        position: relative;

        &::before {
          content: '';
          display: block;
          position: absolute;
          left: 0;
          top: 0;
          width: 100%;
          border-radius: 126/$f+vw;
          background: rgba(61, 61, 62, 0.40);
          height: 100%;
        }

        .bg {
          width: 100%;
          border-radius: 126/$f+vw;
          display: block;
          height: 100%;
        }

        .play {
          position: absolute;
          left: 50%;
          top: 50%;
          transform: translate(-50%, -50%);
          cursor: pointer;
          z-index: 5;

          svg {
            width: 108/$f+vw;
            display: block;
          }
        }
      }

      .r {
        width: 45%;

        .p1 {
          color: #6456A3;
          font-style: italic;
          font-family: 'Newsreader';
          font-size: $fontSize_50;
          text-transform: capitalize;
          line-height: 1.2;
        }

        .des {
          color: #999BB0;
          font-size: $fontSize_28;
          font-style: italic;
          font-family: 'Montserrat-Light';
          line-height: 1.6;
          margin: 1.5vw 0 4vw 0;
        }

        .more {
          border-radius: 32/$f+vw;
          width: fit-content;
          padding: 0.5vw 1vw;
          color: #6456A3;
          display: flex;
          justify-content: center;
          align-items: center;
          text-transform: capitalize;
          font-size: $fontSize_16;
          cursor: pointer;
          transition: all 600ms;

          p {
            font-family: 'Lexend';
          }

          svg {
            display: block;
            width: 25/$f+vw;

            path {
              transition: all 600ms;
            }
          }

          &:hover {
            background-color: #61C0BD;
            color: white;

            svg {
              path {
                fill: white;
              }
            }
          }
        }
      }
    }
  }

  .section3 {
    display: flex;
    justify-content: space-between;
    margin: 5vw 12vw;
    align-items: flex-end;

    .lt {
      color: #6456A3;
      font-size: $fontSize_40;
      font-family: 'Montserrat-Light';
      width: 28%;
    }

    .r {
      width: 72%;
      border-radius: 120/$f+vw;
      background: #6456A3;
      display: flex;
      justify-content: space-around;
      padding: 2vw 0;

      .item {
        text-align: center;

        .tag {
          color: #FFF;
          font-family: 'Montserrat-Regular.otf';
          font-size: $fontSize_22;
        }

        .num {
          color: #FFF;
          font-size: $fontSize_64;
          font-weight: 700;
          display: flex;
          margin-top: 1vw;
          justify-content: center;
        }
      }
    }
  }


  .section4 {
    background: url(../images/hw.png) no-repeat;
    background-size: cover;
    position: relative;

    .swiper-container {
      width: 100%;

      .swiper-slide {
        .info {
          padding: 15vw 10vw 5vw 10vw;
          text-align: center;
          opacity: 0;
          transition: all 600ms;

          .t {
            color: #7C67D8;
            font-size: $fontSize_50;
            font-style: italic;
            font-family: 'Newsreader';
          }

          .des {
            color: #7C67D8;
            font-size: $fontSize_28;
            font-style: italic;
            font-family: 'Montserrat-Light';
            width: 60%;
            margin: 3vw auto;
            line-height: 1.6;
          }

          &:hover {
            opacity: 1;
          }
        }
      }
    }

    .prev {
      position: absolute;
      left: 10vw;
      top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
      z-index: 10;

      svg {
        display: block;
        width: 24/$f+vw;
      }
    }

    .next {
      position: absolute;
      right: 10vw;
      top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
      z-index: 10;

      svg {
        display: block;
        width: 24/$f+vw;
      }
    }
  }

  .section5 {
    margin: 5vw 8vw;

    .t {
      text-align: center;
      font-size: $fontSize_48;
      font-family: 'Montserrat-Regular.otf';
      color: #6456A3;
    }

    .allItems {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      margin-top: 6vw;
      .item {
        width: 40%;
        text-align: center;
        margin-bottom: 3vw;

        .icon {
          svg {
            max-width: 100%;

            path {
              transition: all 600ms;
            }
          }
        }

        .text {
          margin: 4vw 0;

          .p1 {
            color: #6456A3;
            font-size: $fontSize_24;
            font-family: 'Montserrat-Regular.otf';
            text-transform: capitalize;
            position: relative;
            transition: all 600ms;
            padding-bottom: 0.7vw;
            margin-bottom: 0.5vw;

            &::after {
              content: '';
              display: block;
              position: absolute;
              left: 50%;
              bottom: 0;
              background: #999BB0;
              width: 116/$f+vw;
              height: 1px;
              transform: translateX(-50%);
            }
          }

          .des {
            color: #999BB0;
            font-size: $fontSize_22;
            font-style: italic;
            line-height: 1.4;
            font-family: 'Montserrat-Light';
          }
        }

        &:hover {
          .icon {
            svg {
              .path1 {
                fill: #61C0BD;
              }

              .path2 {
                stroke: #61C0BD;
              }
            }
          }

          .text {
            .p1 {
              color: #61C0BD;
            }
          }
        }
      }
    }
  }

  .section6 {
    background: rgba(203, 195, 237, 0.19);
    padding: 5vw 8vw;

    .t {
      text-align: center;
      font-size: $fontSize_48;
      font-family: 'Montserrat-Regular.otf';
      color: #6456A3;
    }

    .list {
      margin-top: 4vw;

      .item {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 4vw;
        .pic {
          width: 46%;

          img {
            width: 100%;
            display: block;
            border-radius: 126/$f+vw;
            transition: all 600ms;
          }

          &:hover {
            img {
              transform: scale(1.05);
            }
          }
        }

        .info {
          width: 46%;

          .p1 {
            color: #6456A3;
            font-size: $fontSize_24;
            font-family: 'Montserrat-Regular.otf';
            position: relative;
            padding-bottom: 0.7vw;

            &::after {
              content: '';
              display: block;
              position: absolute;
              left: 0;
              bottom: 0;
              background: #999BB0;
              width: 122/$f+vw;
              height: 1px;
            }
          }

          .des {
            color: #999BB0;
            font-style: italic;
            font-family: 'Montserrat-Light';
            line-height: 1.5;
            font-size: $fontSize_22;
            margin: 0.7vw 0 3vw 0;
          }

          a {
            width: fit-content;
            border-radius: 32/$f+vw;
            background: #6456A3;
            padding: 0.5vw 1vw;
            color: white;
            display: flex;
            justify-content: center;
            align-items: center;
            text-transform: capitalize;
            font-size: $fontSize_16;
            cursor: pointer;
            transition: all 600ms;
            float: right;

            p {
              font-family: 'Lexend';
            }

            svg {
              display: block;
              width: 25/$f+vw;
            }

            &:hover {
              background-color: #61C0BD;
            }
          }
        }
      }

      .item:nth-child(2n) {
        flex-direction: row-reverse;
      }
    }
  }

  .section7 {
    margin: 5vw 20vw;

    .t {
      text-align: center;
      font-size: $fontSize_48;
      font-family: 'Montserrat-Regular.otf';
      color: #6456A3;
    }

    .list {
      a {
        display: flex;
        justify-content: space-between;
        margin-top: 8vw;

        .pic {
          width: 40%;

          img {
            width: 100%;
            border-radius: 126/$f+vw;
          }
        }

        .info {
          width: 52%;

          .p1 {
            color: #6456A3;
            font-style: italic;
            font-family: 'Newsreader';
            font-size: $fontSize_50;
            text-transform: capitalize;
            line-height: 1.2;
          }

          .des {
            color: #999BB0;
            font-size: $fontSize_28;
            font-style: italic;
            font-family: 'Montserrat-Light';
            line-height: 1.6;
            margin-top: 2vw;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 12;
            overflow: hidden;
          }
        }
      }

      a:nth-child(2n) {
        flex-direction: row-reverse;
      }
    }

    .more {
      margin: 4vw auto;
      width: fit-content;
      border-radius: 32/$f+vw;
      background: #6456A3;
      padding: 0.5vw 1vw;
      color: white;
      display: flex;
      justify-content: center;
      align-items: center;
      text-transform: capitalize;
      font-size: $fontSize_16;
      cursor: pointer;
      transition: all 600ms;

      p {
        font-family: 'Lexend';
      }

      svg {
        display: block;
        width: 25/$f+vw;
      }

      &:hover {
        background-color: #61C0BD;
      }
    }
  }

  .section8 {
    background: #61C0BD;
    text-align: center;
    padding: 5vw 0 3vw 0;

    .t {
      color: #FFF;
      font-size: $fontSize_70;
      font-family: 'Montserrat-Regular.otf';
      text-transform: capitalize;
      line-height: 1.2;
    }

    .des {
      width: 50%;
      margin: 2vw auto 4vw auto;
      font-size: $fontSize_28;
      font-style: italic;
      font-family: 'Montserrat-Light';
      color: white;
      line-height: 1.7;
    }

    a {
      display: flex;
      justify-content: center;
      width: fit-content;
      margin: 0 auto;
      align-items: center;

      p {
        font-size: $fontSize_24;
        font-style: italic;
        font-family: 'Newsreader';
        color: white;
        text-transform: capitalize;
      }

      svg {
        display: block;
        margin-top: 0.3vw;
        width: 30/$f+vw;
      }
    }
  }



  @media screen and (max-width: 1024px) {
    padding-top: 60px;

    .dialog {
      .close {
        top: 80px;

        img {
          width: 30px;
        }
      }

      .content {
        video {
          height: 60vh;
        }
      }
    }

    .section1{
      height: auto;
      .text{
        left: 5%;
        position: static;
        transform: translateY(0);
        margin: 30px auto;
        width: 90%;
        .p1{
          font-size: 28px;
        }
        .p2{
          font-size: 18px;
          margin: 15px 0;
        }
        .buy{
          padding: 8px 20px;
          p{
            font-size: 14px;
          }
          svg{
            width: 20px;
            transform: translateY(0);
          }
        }
      }
      .map{
        position: static;
        transform:translateY(0);
        width: 100%;
        margin: 20px 0;
        .wz{
          display: none;
        }
      }
      .content{
        position: static;
        width: 90%;
        margin: 0 auto;
        a{
          display: block;
          margin-bottom: 30px;
          .pic{
            img{
              height: 200px;
            }
          }
          .info{
            padding: 15px 20px 20px 20px;
            .p1{
              font-size: 20px;
              padding-bottom: 10px;
              margin-bottom: 10px;
              &::after{
                width: 60px;
              }
            }
            .des{
              font-size: 16px;
            }
          }
        }
      }
    }

    .section2 {
      padding: 30px 5%;

      .box1 {
        .slogo {
          img {
            width: 80%;
          }
        }

        .t {
          font-size: 20px;
          text-align: center;
        }

        .t2 {
          font-size: 18px;
          margin: 15px 0;
        }

        .more {
          border-radius: 30px;
          font-size: 14px;
          padding: 5px 20px;
          margin: 15px auto;

          svg {
            width: 20px;
          }
        }
      }

      .box2 {
        margin: 30px 0;
        flex-direction: column;

        .l {
          width: 100%;

          .play {
            svg {
              width: 50px;
            }
          }
        }

        .r {
          width: 100%;
          margin-top: 20px;

          .p1 {
            font-size: 24px;
          }

          .des {
            font-size: 18px;
            margin: 15px 0 30px 0;
          }

          .more {
            border-radius: 30px;
            font-size: 14px;
            padding: 5px 20px;
            background-color: #61C0BD;
            color: white;

            svg {
              width: 20px;
              path{
                fill: white;
              }
            }
          }
        }
      }
    }
    .section3{
      margin: 30px 5%;
      flex-direction: column;
      align-items: flex-start;
      .lt{
        font-size: 24px;
        width: 100%;
      }
      .r{
        width: 100%;
        padding: 20px 0;
        margin-top:20px;
        flex-wrap: wrap;
        .item{
          width: 100%;
          margin-bottom: 15px;
          .tag{
            font-size: 18px;
          }
          .num{
            font-size: 32px;
            margin-top: 10px;
          }
        }
      }
    }
    .section4{
      .swiper-container{
        .swiper-slide{
          .info{
            padding: 50px 5%;
            opacity: 1;
            .t{
              font-size: 24px;
            }
            .des{
              font-size: 16px;
              width: 100%;
              margin: 20px 0 0 0;
            }
          }
        }
      }
      .prev,.next{
         display: none;
      }
    }
    .section5{
      margin: 50px 5%;
      .t{
        font-size: 24px;
      }
      .allItems{
        .item{
          width: 100%;
          margin-top: 30px;
          .icon{
            svg{
              max-width: inherit;
              width: 70%;
            }
          }
          .text{
            margin: 0 0 20px 0;
            .p1{
              font-size: 20px;
              padding-bottom: 15px;
              margin-bottom: 10px;
              &::after{
                width: 80px;
              }
            }
            .des{
              font-size: 18px;
            }
          }
        }
      }
    }
    .section6{
      padding: 40px 5%;
      .t{
        font-size: 24px;
      }
      .list{
         margin-top: 30px;
         .item{
          flex-direction: column !important;
          margin-bottom: 40px;
          .pic{
            width: 100%;
          }
          .info{
            width: 100%;
            margin-top: 20px;
            .p1{
              font-size: 24px;
              padding-bottom: 10px;
              &::after{
                width: 50px;
              }
            }
            .des{
              font-size: 18px;
              margin: 10px 0 30px 0;
            }
            a{
              padding: 8px 20px;
              p{
                font-size: 14px;
              }
              svg{
                width: 20px;
              }
            }
          }
         }
      }
    }
    .section7{
      margin: 60px 5%;
      .t{
        font-size: 24px;
      }
      .list{
        a{
          flex-direction: column !important;
          margin-top: 40px;
          .pic{
            width: 100%;
          }
          .info{
            width: 100%;
            margin-top: 30px;
            .p1{
              font-size: 24px;
            }
            .des{
              font-size: 18px;
              margin-top: 20px;
            }
          }
        }
      }
      .more{
        margin: 30px auto;
        border-radius: 30px;
        font-size: 14px;
        padding: 8px 20px;
        background-color: #61C0BD;
        color: white;

        svg {
          width: 20px;
          path{
            fill: white;
          }
        }
      }
    }
    .section8{
      padding: 40px 0 30px 0;
      .t{
        font-size:28px;
        margin: 0 5%;
      }
      .des{
        font-size: 16px;
        width: 90%;
      }
      a{
        margin: 20px auto 0 auto;
        p{
          font-size: 18px;
        }
        svg{
          width: 25px;
          transform: translateY(2px);
        }
      }
    }
  }
}